package com.qining618.cms.cms.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * 内容状态
 * @author flt
 * @date 2019-09-17
 */
public enum ContentStatusEnum implements IEnum<Integer> {

    DRAFT(0, "草稿"),

    CHECKING(1, "审核中"),

    CHECKED(2, "审核通过"),

    RECYCLE(3, "回收站"),

    CONTRIBUTE(4, "投稿"),

    PIGEONHOLE(5, "归档"),

    REJECT(9, "退回")
    ;

    private final int code;
    private final String label;

    ContentStatusEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    public int getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }
//    状态(0:草稿;1:审核中;2:审核通过;3:回收站;4:投稿;5:归档)

}
